<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <f:view>
        <h:head>
            <title>GameConventions</title>
        </h:head>
        <h:body>
            <h:form id="convForm">
                <h:panelGrid columns="2">
                    <h:outputText value="Type of game"/>
                    <h:selectOneRadio id="typeOfGame" binding="#{convSelectController.typeOfGame}" value="#{gameConventions.commonPool}">
                        <f:selectItem itemValue="false" itemLabel="Sochi"/>
                        <f:selectItem itemValue="true" itemLabel="Leningrad"/>
                    </h:selectOneRadio>

                    <h:outputText value="Length of Pool"/>
                    <h:inputText id="poolLength" binding="#{convSelectController.poolLength}" value="#{gameConventions.poolLength}">
                        <f:convertNumber/>
                    </h:inputText>

                    <h:outputText value="Price of wist"/>
                    <h:selectOneRadio id="wistPrice" binding="#{convSelectController.wistPrice}" value="#{gameConventions.whistFullPrice}">
                        <f:selectItem itemValue="true" itemLabel="Otv"/>
                        <f:selectItem itemValue="false" itemLabel="hafOtv"/>
                    </h:selectOneRadio>

                    <h:outputText value="Stalingrad"/>
                    <h:selectBooleanCheckbox id="stalingrad" binding="#{convSelectController.stalingrad}" value="#{gameConventions.stalingrad}"/>

                    <h:outputText value="Type of wist"/>
                    <h:selectOneRadio id="typeWist" binding="#{convSelectController.typeWist}" value="#{gameConventions.gentlemanWhist}">
                        <f:selectItem itemValue="false" itemLabel="Jlob"/>
                        <f:selectItem itemValue="true" itemLabel="Djentel"/>
                    </h:selectOneRadio>

                    <h:outputText value="bez Trex"/>
                    <h:selectBooleanCheckbox id="bezTrex" binding="#{convSelectController.bezTrex}" value="#{gameConventions.gameWithoutThree}"/>

                    <h:outputText value="Progression"/>
                    <h:selectOneMenu id="progression" binding="#{convSelectController.progression}" value="#{gameConventions.progression}">
                        <f:selectItems value="#{gameConventions.progressionType}"/>
                    </h:selectOneMenu>

                    <h:outputText value="Progress Factor"/>
                    <h:inputText id="pogresKoef" binding="#{convSelectController.pogresKoef}" value="#{gameConventions.progressionFactor}">
                        <f:convertNumber/>
                    </h:inputText>

                    <h:outputText value="Raspas Exit"/>
                    <h:selectOneMenu id="raspasExit" binding="#{convSelectController.raspasExit}" value="#{gameConventions.exitFromRaspas}">
                        <f:selectItems value="#{gameConventions.raspasExitType}"/>
                    </h:selectOneMenu>

                    <h:outputText value="V goru"/>
                    <h:selectOneMenu id="vGoru" binding="#{convSelectController.vGoru}" value="#{gameConventions.pointsPerTrickOnRaspas}">
                        <f:selectItem itemValue="1" itemLabel="1"/>
                        <f:selectItem itemValue="2" itemLabel="2"/>                
                    </h:selectOneMenu>


                    <h:commandButton action="#{convSelectController.CreateGame()}"  value="#{msg.BcreateGame}"/>
                </h:panelGrid>
            </h:form>
        </h:body>
    </f:view>
</html>

